package net.nampham.visioncontrol.view;

import net.nampham.visioncontrol.model.DColor;

public class RColor {
	public float[] v;
	
	public RColor(float r, float g, float b){
		v = new float[4];
		v[0] = r;
		v[1] = g;
		v[2] = b;
		v[3] = 1.0f;
	}

	public RColor(float r, float g, float b, float a){
		v = new float[4];
		v[0] = r;
		v[1] = g;
		v[2] = b;
		v[3] = a;
	}
	
	public RColor(DColor src){
		this(src.r, src.g, src.b);
	}

	public RColor(DColor src, float alpha){
		this(src.r, src.g, src.b, alpha);
	}
}
